22.10.2011, 17:19
Ok i did fix that now when i finished this of ive total messed it up.
I can sort the warnings out its just the errors.
Код:
public OnPlayerRequestClass(playerid, classid) { SetPlayerTeamFromClass(playerid, classid); { if(classid == 0) { gTeam[playerid] = TEAM_GANG; return 1; } else if(classid == 1) { gTeam[playerid] = TEAM_LSPD; return 1; } } SetPlayerToTeamColor(playerid) { if (gTeam[playerid] == TEAM_GANG) { SetPlayerColor(playerid, COLOR_GREEN); } else if (gTeam[playerid] == TEAM_LSPD) { SetPlayerColor(playerid, COLOR_BLUE); } } SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; }
Код:
C:\Users\GTA ONLY\Desktop\samp03csvr_R2-2_win32\pawno\include\zcmd.inc(96) : warning 217: loose indentation C:\Users\GTA ONLY\Desktop\samp03csvr_R2-2_win32\pawno\include\zcmd.inc(97) : warning 217: loose indentation C:\Users\GTA ONLY\Desktop\samp03csvr_R2-2_win32\pawno\include\zcmd.inc(98) : warning 217: loose indentation C:\Users\GTA ONLY\Desktop\Version3(1)\gamemodes\Gamemode.pwn(95) : warning 201: redefinition of constant/macro (symbol "COLOR_GREEN") C:\Users\GTA ONLY\Desktop\Version3(1)\gamemodes\Gamemode.pwn(146) : error 017: undefined symbol "SetPlayerTeamFromClass" C:\Users\GTA ONLY\Desktop\Version3(1)\gamemodes\Gamemode.pwn(147) : warning 217: loose indentation C:\Users\GTA ONLY\Desktop\Version3(1)\gamemodes\Gamemode.pwn(159) : warning 217: loose indentation C:\Users\GTA ONLY\Desktop\Version3(1)\gamemodes\Gamemode.pwn(159) : error 017: undefined symbol "SetPlayerToTeamColor" C:\Users\GTA ONLY\Desktop\Version3(1)\gamemodes\Gamemode.pwn(170) : warning 217: loose indentation C:\Users\GTA ONLY\Desktop\Version3(1)\gamemodes\Gamemode.pwn(262) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.