31.01.2015, 12:56
pls help guys, idk why errors here :/
Error messages :
#define pid playerid
Код:
new ArNaujas[MAX_PLAYERS], slapt[128];
Код:
if(dialogid==1){ if(response){ new file[128], name[128]; GetPlayerName(pid, name, 128); format(file, 128, "%s.txt", name); dini_Create(file); format(slapt, 128, "%s", inputtext); ArNaujas[pid]=1; SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); ShowPlayerDialog(pid, 10, DIALOG_STYLE_MSGBOX, "LYTIES PASIRINKIMAS", "{FFFFFF}Pasirinkite lytį apačioje !", "Vyras", "Moteris");} if(!response){ Kick(pid);} return 1;}
Код:
if(dialogid==2){ if(response){ new name[vard], file[128]; GetPlayerName(pid, name, sizeof(name)); format(file, sizeof(file), "%s.txt", name); if(ArNaujas[pid]==1){ //367 if(slapt==inputtext){ dini_IntSet(file, "slaptazodis", slapt);} else{ Kick(pid), dini_Remove(file); }} else{ if(CheckPass(file, inputtext)){ SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); SendClientMessage(pid, -1, ""); TogglePlayerSpectating(pid, 0); SpawnPlayer(pid); SendClientMessage(pid, -1, "{CC6600}Sekmingai prisijungei į {009900}Feel-Action.lt {CC6600}serverį !");} if(!CheckPass(file, inputtext)){ Kick(pid);}} return 1;}}
Код:
D:\PAWN\def SampSV 0.3z+rar\GM\pawno\include\server\connect2.inc(367) : error 033: array must be indexed (variable "slapt") D:\PAWN\def SampSV 0.3z+rar\GM\pawno\include\server\connect2.inc(368) : error 035: argument type mismatch (argument 3)