ayuda error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: ayuda error (
/showthread.php?tid=609646)
ayuda error -
Capotte - 14.06.2016
hola me ayudan con este error
error
(9890) : error 014: invalid statement; not in switch
(9890) : warning 215: expression has no effect
(9890) : error 001: expected token: ";", but found ":"
(9890) : error 029: invalid expression, assumed zero
(9890) : fatal error 107: too many error messages on one line[/QUOTE]
code
Quote:
stock GetPlayerFactionInfo(targetid, rank[64], division[64], employer[64])
{
switch (PlayerInfo[targetid][miembro]) // employer/rank/division data is pulled from here
{
case 1:
{
employer = "SAPD";
switch(PlayerInfo[targetid][rango])
{
case 1: rank = "Cadete";
case 2: rank = "Oficial"; // error
case 3: rank = "Detective";
case 4: rank = "Sargento";
case 5: rank = "Teniente";
case 6: rank = "Comandante";
default: rank = "Cadete";
}
division = "Ninguna";
}
default: { employer = "Ninguna"; division = "Ninguna"; rank = "N/A"; }
}
return 1;
}
|
Re: ayuda error -
moura98 - 15.06.2016
coloque esto ' ' y no esto " "
Re: ayuda error -
Capotte - 15.06.2016
Quote:
Originally Posted by moura98
coloque esto ' ' y no esto " "
|
no estas mal eso