Need help. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help. (
/showthread.php?tid=303863)
Need help. -
Pets - 15.12.2011
I get these errors :
Код:
C:\Users\Raks\Desktop\Raks\pawno\samp03csvr_R2-2_win32\gamemodes\raksikas.pwn(317) : error 035: argument type mismatch (argument 1)
C:\Users\Raks\Desktop\Raks\pawno\samp03csvr_R2-2_win32\gamemodes\raksikas.pwn(321) : error 001: expected token: "#endif", but found "-end of file-"
From line 315 to the end:
Код:
GetPlayerHealth(i,PlayerHealth);
format(string,sizeof(string),"~r~Surmad ~w~%d~n~~b~Tapmised ~w~%d~n~~p~Skoor~w~%d~n~~g~Elud ~w~%.f", Minfo2[i][Surmad], Minfo2[i][Tapmised], Minfo2[i][Skoor], Elud);
TextDrawSetString(Minfo2[i],string);
}
return 1;
}
Re: Need help. -
[MG]Dimi - 15.12.2011
pawn Код:
GetPlayerHealth(i,PlayerHealth);
do you have
pawn Код:
new Float:PlayerHealth;
//or
new PlayerHealth;
?
Re: Need help. -
kizla - 15.12.2011
pawn Код:
GetPlayerHealth(i,Float:PlayerHealth);
format(string,sizeof(string),"~r~Surmad ~w~%d~n~~b~Tapmised ~w~%d~n~~p~Skoor~w~%d~n~~g~Elud ~w~%.f", Minfo2[i][Surmad], Minfo2[i][Tapmised], Minfo2[i][Skoor], Elud);
TextDrawSetString(Minfo2[i],string);
}
return 1;
}
Re: Need help. -
Pets - 16.12.2011
Still same errors.. if i used kizlas code or Dimi's.. still the same
Код:
C:\Users\Raks\Desktop\Raks\pawno\samp03csvr_R2-2_win32\gamemodes\raksikas.pwn(317) : error 035: argument type mismatch (argument 1)
C:\Users\Raks\Desktop\Raks\pawno\samp03csvr_R2-2_win32\gamemodes\raksikas.pwn(321) : error 001: expected token: "#endif", but found "-end of file-"
Код:
Line 317: TextDrawSetString(Minfo2[i],string);