[Error] How to fix: Stupid error: 079 ???? - 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: [Error] How to fix: Stupid error: 079 ???? (
/showthread.php?tid=100713)
[Error] How to fix: Stupid error: 079 ???? -
Crusher!! - 06.10.2009
Hi,
i have this error:
Quote:
\\87.208.200.52\SERVER:100\Users\Crusher\Desktop\N oName.pwn(364) : error 079: inconsistent return types (array & non-array)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
|
pawn Код:
stock Crshr_GetPlayerName(playerid)
{
if(IsPlayerConnected(playerid))
{
new name[MAX_PLAYER_NAME] = "~";
GetPlayerName(playerid,name,sizeof(name));
return name;
}
else
{
return false; //line 364
}
}
Re: [Error] How to fix: Stupid error: 079 ???? -
spiper - 06.10.2009
What is the function supposed to do?
Re: [Error] How to fix: Stupid error: 079 ???? -
Crusher!! - 06.10.2009
Getting the player name

example:
pawn Код:
new string[128];
format(string,sizeof(string), "~w~You're name is~n~~b~ %s",Crshr_GetPlayerName(playerid));
GameTextForPlayer(playerid,string,4000,5);
Re: [Error] How to fix: Stupid error: 079 ???? -
spiper - 06.10.2009
arite, what is it going to be recorded for?
like a log or a message...?
Re: [Error] How to fix: Stupid error: 079 ???? -
Crusher!! - 06.10.2009
i have it now so:
pawn Код:
stock Crshr_GetPlayerName(playerid)
{
new name[MAX_PLAYER_NAME] = "~";
GetPlayerName(playerid,name,sizeof(name));
return name;
}
it compiles without errors.'
Re: [Error] How to fix: Stupid error: 079 ???? -
spiper - 06.10.2009
haha arite.