|
C:\games\GTA SanAndreas\SeRveR SaMp\gamemodes\my own script.pwn(107) : error 017: undefined symbol "pInfo" C:\games\GTA SanAndreas\SeRveR SaMp\gamemodes\my own script.pwn(107) : error 009: invalid array size (negative, zero or out of bounds) C:\games\GTA SanAndreas\SeRveR SaMp\gamemodes\my own script.pwn(119) : error 017: undefined symbol "SetPlayerMoney" C:\games\GTA SanAndreas\SeRveR SaMp\gamemodes\my own script.pwn(119) : warning 202: number of arguments does not match definition C:\games\GTA SanAndreas\SeRveR SaMp\gamemodes\my own script.pwn(119) : error 001: expected token: ",", but found ";" C:\games\GTA SanAndreas\SeRveR SaMp\gamemodes\my own script.pwn(126) : error 017: undefined symbol "SetPlayerMoney" C:\games\GTA SanAndreas\SeRveR SaMp\gamemodes\my own script.pwn(127) : error 017: undefined symbol "SetPlayerMoney" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
SetPlayerTeamFromClass(playerid, classid) // this is not a native function
{
switch(classid) // it switches through classids
{
case 0: // classid 0
{
gTeam[playerid] = TEAM_GROVE; // it sets the data of the player who selected the first team (in the gTeam array) to TEAM_GROVE
{
SetPlayerColor(playerid,TEAM_GROVE_COLOR);
}
}
case 1: // classid 1
{
gTeam[playerid] = TEAM_BALLAS; // it sets the data of the player who selected the second team (in the gTeam array) to TEAM_BALLAS
{
SetPlayerColor(playerid, TEAM_BALLAS_COLOR);
}
}
}
}
|
I'm sorry to bump this thread, but lately, I have been really busy and lost the knowledge I had gained. I'll be thinking of starting again to script, although from my point of view, having knowledge of this language is not very useful in your life.
|