19.10.2010, 18:29
I want to make a /savepostofile cmd but i got much of warnings and errors
but i have theese errors:
thx for helping
pawn Код:
if (strcmp(cmdtext, "/savepostofile", true)==0)
{
new string[128];
new Float:X, Float:Z, Float:Y, Float:Rotation; // this is line 666
GetPlayerPos(playerid, X, Y, Z); // this is line 667
GetPlayerFacingAngle(playerid, Rotation);
new File:pos=fopen("Server/Save/onfoot", io_append);
format(string, 256, "AddPlayerClass(0, %f, %f, %f, %f, 0,0,0,0,0,0);", X, Y, Z,Rotation); //this is line 670
fwrite(pos, string);
fclose(pos);
return 1;
}
Код:
\SASF.pwn(666) : warning 219: local variable "X" shadows a variable at a preceding level (666) : warning 219: local variable "Z" shadows a variable at a preceding level (666) : warning 219: local variable "Y" shadows a variable at a preceding level (667) : error 035: argument type mismatch (argument 2) (670) : warning 213: tag mismatch (670) : warning 213: tag mismatch (670) : warning 213: tag mismatch (666) : warning 203: symbol is never used: "Y" (666) : warning 203: symbol is never used: "Z" (666) : warning 203: symbol is never used: "X"