C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(37) : warning 201: redefinition of constant/macro (symbol "strcpy(%0,%1,%2)") C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(1575) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(3597) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(3636) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(3638) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(3897) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(5474) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(5484) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(5515) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(5526) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(5534) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(5538) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(5551) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(5555) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(5568) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(5581) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(5650) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(5724) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(5772) : warning 217: loose indentation C:\Users\RAFAY\Desktop\0.3x\gamemodes\COS-RP.pwn(5780) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 20 Warnings. .
Originally Posted by Knight_Rider
Indentation is a basic rule at programming, not indented code is not able to be read good.
What you suggest him actually is do it like that: pawn Код:
pawn Код:
I hope you don't press space 4 times! ![]() |
#define strcpy(%0,%1,%2) %0="",strcat(%0,%2,%1)
Brackets problem ._. show us the code
And the server can still work Warnings doesn't matter ![]() |
Brackets problem ._. show us the code
And the server can still work Warnings doesn't matter ![]() |
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
new string[128], victim[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME];
new weaponname[24];
GetPlayerName(playerid, victim, sizeof (victim));
GetPlayerName(issuerid, attacker, sizeof (attacker));
GetWeaponName(weaponid, weaponname, sizeof (weaponname));
format(string, sizeof(string), "%s has made %.0f damage to %s, weapon: %s", attacker, amount, victim, weaponname);
SendClientMessageToAll(0xFFFFFFFF, string);
}
return 1;
}
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
new string[128], victim[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME];
new weaponname[24];
GetPlayerName(playerid, victim, sizeof (victim));
GetPlayerName(issuerid, attacker, sizeof (attacker));
GetWeaponName(weaponid, weaponname, sizeof (weaponname));
format(string, sizeof(string), "%s has made %.0f damage to %s, weapon: %s", attacker, amount, victim, weaponname);
SendClientMessageToAll(0xFFFFFFFF, string);
}
return 1;
}
You need to leave 4 spaces everytime you open a bracket and thing like that
|
Indentation is a basic rule at programming, not indented code is not able to be read good.
I hope you don't press space 4 times! ![]() |