23.05.2009, 13:16
Hi i made a commnads - teleports script but it dond work i don know why i get this errors and 2 warnings can somone help me whit it
C:\Documents and Settings\rafael\Bureaublad\teleports.pwn(315) : warning 217: loose indentation
C:\Documents and Settings\rafael\Bureaublad\teleports.pwn(317) : error 017: undefined symbol "PosX"
C:\Documents and Settings\rafael\Bureaublad\teleports.pwn(317) : warning 215: expression has no effect
C:\Documents and Settings\rafael\Bureaublad\teleports.pwn(317) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\rafael\Bureaublad\teleports.pwn(317) : error 029: invalid expression, assumed zero
C:\Documents and Settings\rafael\Bureaublad\teleports.pwn(317) : fatal error 107: too many error messages on one line
how i fix this
line 315 if (strcmp(cmdtext, "/savep", true)==0)
line 316 {
line 317 GetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
line 318 GetPlayerFacingAngle(playerid, PosA[playerid]);
line 319 SendClientMessage(playerid, COLOR_YELLOW, "Positon set! Go to this possiton with /loadp,");
line 320 PosI[playerid] = (GetPlayerInterior(playerid));
line 321 PlayerPlaySound(playerid, 1137 , 0.0, 0.0, 0.0);
line 322 return 1;
line 323 }
C:\Documents and Settings\rafael\Bureaublad\teleports.pwn(315) : warning 217: loose indentation
C:\Documents and Settings\rafael\Bureaublad\teleports.pwn(317) : error 017: undefined symbol "PosX"
C:\Documents and Settings\rafael\Bureaublad\teleports.pwn(317) : warning 215: expression has no effect
C:\Documents and Settings\rafael\Bureaublad\teleports.pwn(317) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\rafael\Bureaublad\teleports.pwn(317) : error 029: invalid expression, assumed zero
C:\Documents and Settings\rafael\Bureaublad\teleports.pwn(317) : fatal error 107: too many error messages on one line
how i fix this
line 315 if (strcmp(cmdtext, "/savep", true)==0)
line 316 {
line 317 GetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
line 318 GetPlayerFacingAngle(playerid, PosA[playerid]);
line 319 SendClientMessage(playerid, COLOR_YELLOW, "Positon set! Go to this possiton with /loadp,");
line 320 PosI[playerid] = (GetPlayerInterior(playerid));
line 321 PlayerPlaySound(playerid, 1137 , 0.0, 0.0, 0.0);
line 322 return 1;
line 323 }