public OnPlayerText(playerid, text[]){new TickCount = GetTickCount();if(GetPVarInt(playerid,\"FloodTime\") > (TickCount-(FLOODTIME * 1000))){SendClientMessage(playerid, 0xFF0000AA, \"Kérlek írj lassabban !\");return 0;}SetPVarInt(playerid,\"FloodTime\",GetTickCount());return 1;}
SetPVarInt(playerid, \"HEALFLOOD\", 9999999999);
if(GetPVarInt(playerid, \"HEALFLOOD\") < (gettime() + 30000)) return SendClientMessage(playerid, -1, \"Ne élj vissza a Heal paranccsal\");SetPVarInt(playerid, \"HEALFLOOD\", gettime());
#include <a_samp>public OnPlayerConnect(){SetPVarInt(playerid, \"HEALFLOOD\", 9999999999);return 1;}public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(cmdtext, \"/health\", true) == 0) {SetPlayerHealth(playerid,100.0);SendClientMessage(playerid, 0x33CCFFAA,\"Feltöltöted az életed\");if(GetPVarInt(playerid, \"HEALFLOOD\") < (gettime() + 30000)) return SendClientMessage(playerid, -1, \"Ne élj vissza a /health paranccsal !\");SetPVarInt(playerid, \"HEALFLOOD\", gettime());return 1;}if(strcmp(cmdtext, \"/armour\", true) == 0) {SetPlayerArmour(playerid,100.0);SendClientMessage(playerid, 0x33CCFFAA,\"Feltöltöted a pajzsod\");if(GetPVarInt(playerid, \"HEALFLOOD\") < (gettime() + 30000)) return SendClientMessage(playerid, -1, \"Ne élj vissza a /armour paranccsal !\");SetPVarInt(playerid, \"HEALFLOOD\", gettime());return 1;}return 0;}
C:\\Documents and Settings\\Robi\\Asztal\\new.pwn(5) : error 017: undefined symbol \"playerid\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
#include <a_samp>public OnPlayerConnect(playerid){ SetPVarInt(playerid, \"HEALFLOOD\", 9999999999); return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if(strcmp(cmdtext, \"/health\", true) == 0) { SetPlayerHealth(playerid,100.0); SendClientMessage(playerid, 0x33CCFFAA,\"Feltöltöted az életed\"); if(GetPVarInt(playerid, \"HEALFLOOD\") < (gettime() + 30000)) return SendClientMessage(playerid, -1, \"Ne élj vissza a /health paranccsal !\"); SetPVarInt(playerid, \"HEALFLOOD\", gettime()); return 1; } if(strcmp(cmdtext, \"/armour\", true) == 0) { SetPlayerArmour(playerid,100.0); SendClientMessage(playerid, 0x33CCFFAA,\"Feltöltöted a pajzsod\"); if(GetPVarInt(playerid, \"HEALFLOOD\") < (gettime() + 30000)) return SendClientMessage(playerid, -1, \"Ne élj vissza a /armour paranccsal !\"); SetPVarInt(playerid, \"HEALFLOOD\", gettime()); return 1; } return 0;}