03.06.2012, 07:24
Hello,
I made an /diplomas command
the diplomas are now in /stats but /stats is OOC...
So i made this:
but then i get these error's
Can someone help me
I made an /diplomas command
the diplomas are now in /stats but /stats is OOC...
So i made this:
pawn Код:
command(diplomas, playerid, params[])
{
#pragma unused params
new deg1[128], deg2[128], deg3[128], deg4[128], deg5[128], string[128];
if(Player[playerid][CollegeMedia] >= 1)
{
format(deg1, sizeof(deg1), "Qualified");
}
else
{
format(deg1, sizeof(deg1), "UnQualified");
}
if(Player[playerid][CollegeLaw] >= 1)
{
format(deg2, sizeof(deg2), "Qualified");
}
else
{
format(deg2, sizeof(deg2), "UnQualified");
}
if(Player[playerid][CollegeEng] >= 1)
{
format(deg3, sizeof(deg3), "Qualified");
}
else
{
format(deg3, sizeof(deg3), "UnQualified");
}
if(Player[playerid][CollegeMath] >= 1)
{
format(deg4, sizeof(deg4), "Qualified");
}
else
{
format(deg4, sizeof(deg4), "UnQualified");
}
format(string, sizeof(string), "Media Studies: %s | Civil Law: %s | English: %s | Maths: %s | Chemistry: %s", deg1, deg2, deg3, deg4, deg5);
SendClientMessage(playerid, WHITE, string);
}
return 1;
}
pawn Код:
C:\Users\Stefan Dorst\Desktop\NonName Rp\gamemodes\SRP.pwn(13939) : warning 217: loose indentation
C:\Users\Stefan Dorst\Desktop\NonName Rp\gamemodes\SRP.pwn(13968) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
