Ich bin gerade Dabei, bei meinem Selfmade Reallife Script, ein Banksystem zu erstellen. Das Geld bekomme ich schun usw nur möchte ich jetzt den Kontostand abrufen. Das hab ich so gemacht:
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[128];
new pName[16];
GetPlayerName(playerid, pName, sizeof(pName));
if(strcmp("/bank", cmdtext, true) == 0)
{
format(string, sizeof(string),"Du hast $%d auf deinem Konto.", PlayerInfo[playerid][Bank]);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
Und wenn ich das Jetzt Compile, bekomm ich dass :
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(340) : error 079: inconsistent return types (array & non-array)
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(343) : warning 217: loose indentation
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(343) : error 029: invalid expression, assumed zero
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(343) : error 004: function "OnPlayerEnterVehicle" is not implemented
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(345) : error 079: inconsistent return types (array & non-array)
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(348) : warning 225: unreachable code
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(348) : error 029: invalid expression, assumed zero
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(348) : error 004: function "OnPlayerExitVehicle" is not implemented
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(350) : error 079: inconsistent return types (array & non-array)
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(353) : warning 225: unreachable code
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(353) : error 029: invalid expression, assumed zero
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(353) : error 004: function "OnPlayerStateChange" is not implemented
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(395) : error 079: inconsistent return types (array & non-array)
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(398) : warning 225: unreachable code
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(398) : error 029: invalid expression, assumed zero
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(398) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(400) : error 079: inconsistent return types (array & non-array)
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(403) : warning 225: unreachable code
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(403) : error 029: invalid expression, assumed zero
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(403) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(405) : error 079: inconsistent return types (array & non-array)
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(408) : warning 225: unreachable code
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(408) : error 029: invalid expression, assumed zero
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(408) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(410) : error 079: inconsistent return types (array & non-array)
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(413) : warning 225: unreachable code
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(413) : error 029: invalid expression, assumed zero
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(413) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(415) : error 079: inconsistent return types (array & non-array)
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(418) : warning 225: unreachable code
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(418) : error 029: invalid expression, assumed zero
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(418) : error 004: function "OnRconCommand" is not implemented
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(420) : error 079: inconsistent return types (array & non-array)
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(423) : warning 225: unreachable code
W:\Server\GTA San Andreas Server\7580\gamemodes\gaf-selfmade.pwn(423) : error 029: invalid expression, assumed zero
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Ich Scripte noch nich all zu lange und hoffe daher auf schnelle Hilfe!