SA-MP Forums Archive
help with errors please - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help with errors please (/showthread.php?tid=117043)



help with errors please - rs2fun111 - 30.12.2009

Top
pawn Код:
new randomfbi[][] = {
"500",
"450",
};
Cmd /becomefbi
pawn Код:
if (strcmp("/becomefbi", cmdtext, true, 10) == 0)
  {
  if (GetPlayerScore(playerid) >= 1500)
  {
  SendClientMessage(playerid,0xFFFFFFFF,"You Are Now FBI!");
  SetPlayerSkin(playerid, randomfbi[random(sizeof(randomfbi))]);
  SetPlayerColor(playerid,COLOR_DARKBLUE);
  }
  else
  {
  SendClientMessage(playerid,0xFFFFFFFF,"You Need Atleast 1000 Score Point To Become FBI!");
  }
error

Код:
C:\Users\kalvi\Desktop\sa-mp\pawno\include\IsPlayerLAdmin.inc(15) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Users\kalvi\Desktop\sa-mp\pawno\include\IsPlayerLAdmin.inc(32) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Users\kalvi\Desktop\sa-mp\gamemodes\kfsr2.pwn(18) : error 029: invalid expression, assumed zero
C:\Users\kalvi\Desktop\sa-mp\gamemodes\kfsr2.pwn(18) : error 008: must be a constant expression; assumed zero
C:\Users\kalvi\Desktop\sa-mp\gamemodes\kfsr2.pwn(975) : warning 217: loose indentation
C:\Users\kalvi\Desktop\sa-mp\gamemodes\kfsr2.pwn(1105) : error 035: argument type mismatch (argument 2)
C:\Users\kalvi\Desktop\sa-mp\gamemodes\kfsr2.pwn(1524) : warning 203: symbol is never used: "gPlayerClass"
C:\Users\kalvi\Desktop\sa-mp\gamemodes\kfsr2.pwn(1524) : warning 203: symbol is never used: "gTeam"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.



Re: help with errors please - ben1 - 31.12.2009

What is line 18 and 1105?


Re: help with errors please - GTAguillaume - 31.12.2009

Код:
new randomfbi[] = { // Why the last []? It are integers...
"500",
"450",
};