14.12.2010, 20:18
pawn Код:
new ip = GetPlayerIp(playerid, ip,20);
Код:
error 035: argument type mismatch (argument 2)
new ip = GetPlayerIp(playerid, ip,20);
error 035: argument type mismatch (argument 2)
new ip[20];
GetPlayerIp(playerid, ip, 20);
if(strcmp(cmd, "/zakljucajserver", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 6 || IsPlayerAdmin(playerid))
{
if(ServerZakljucan == false)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /zakljucajserver [Lozinka]");
return 1;
}
tmp = strtok(cmdtext, idx);
ServerZakljucan = true;
------ERROR---> LozinkaServera = tmp; <------------- ERROR LINE
new pstr[64];
format(pstr, sizeof pstr, "|NLG|: Server zakljucan! Lozinka: %s", LozinkaServera);
SendClientMessage(playerid, COLOR_RED, pstr);
SendAdminMessage(COLOR_ORANGE, "|NLG| Server zakljucan!");
// rest of cmd
error 006: must be assigned to an array
if(!strcmp(inputtext, LozinkaServera, false))
error 035: argument type mismatch (argument 2)