Şu şekilde deneyinLWZemrahbaba yazdı: Pzr Ağu 21, 2022 1:07 amzombiplague_sendcpx.sma(13) : warning 217: loose indentation2Adam yazdı: Cum Ağu 19, 2022 11:10 pmDenermisinizLWZemrahbaba yazdı: Cum Ağu 19, 2022 11:02 pm
bu hataları aldımKod: Tümünü seç
AMX Mod X Compiler 1.10.0.5392 Copyright (c) 1997-2006 ITB CompuPhase Copyright (c) 2004-2013 AMX Mod X Team zombieplague_cpver.sma(13) : warning 217: loose indentation zombieplague_cpver.sma(21) : warning 217: loose indentation zombieplague_cpver.sma(22) : warning 217: loose indentation zombieplague_cpver.sma(23) : error 017: undefined symbol "zp_set_user_ammo" zombieplague_cpver.sma(23) : warning 215: expression has no effect zombieplague_cpver.sma(23) : error 001: expected token: ";", but found ")" zombieplague_cpver.sma(23) : error 029: invalid expression, assumed zero zombieplague_cpver.sma(23) : fatal error 107: too many error messages on one line Compilation aborted. 4 Errors. Done.
Kod: Tümünü seç
#include <amxmodx> #include <reapi> #include <zombieplague> new IP_IDsCpel; new const Tag[] = "Server Taginiz" public plugin_init() { register_plugin("cpver", "0.1", "2adam"); register_clcmd("say /cp", "roundstrt"),RegisterHookChain(RG_CSGameRules_RestartRound, "roundstrt", false); } public roundstrt(){ static IP_IDs; cpyiver(IP_IDs); } public cpyiver(IP_IDs){ if(get_member_game(m_bCompleteReset)) { IP_IDsCpel=-3; } IP_IDsCpel++; { zp_set_user_ammo_packs(IP_IDs, zp_get_user_ammo_packs(IP_IDs) += 3) client_print_color(IP_IDs, "^1[%s] ^2Cp hesabiniza ^3gecmistir",Tag) for (new i = 1; i <= MaxClients; i++) { if(is_user_connected(i)){ } IP_IDsCpel = 1; } client_print_color(IP_IDs, "^1[%s] ^2Cp almak icin daha ^3(%i/3) ^2Daha oynaman lazim!!",Tag,IP_IDsCpel) }
zombiplague_sendcpx.sma(24) : warning 217: loose indentation
zombiplague_sendcpx.sma(25) : warning 217: loose indentation
zombiplague_sendcpx.sma(26) : error 022: must be lvalue (non-constant)
zombiplague_sendcpx.sma(26) : warning 215: expression has no effect
zombiplague_sendcpx.sma(26) : error 001: expected token: ";", but found ")"
zombiplague_sendcpx.sma(26) : error 029: invalid expression, assumed zero
zombiplague_sendcpx.sma(26) : fatal error 107: too many error messages on one line
reıs bu seferde bunu verdı
Kod: Tümünü seç
#include <amxmodx>
#include <reapi>
#include <zombieplague>
new IP_IDsCpel[MAX_CLIENTS+1];
new const Tag[] = "Server Taginiz"
public plugin_init()
{
register_plugin("cpver", "0.1", "2adam");
register_clcmd("say /cp", "cpyiver")
}
public cpyiver(IP_IDs){
if(IP_IDsCpel[IP_IDs] == 0)
{
zp_set_user_ammo_packs(IP_IDs, zp_get_user_ammo_packs(IP_IDs) + 100)
client_print_color(IP_IDs, "^1[%s] ^2Cp hesabiniza ^3gecmistir",Tag)
IP_IDsCpel[IP_IDs] = 3;
} else {
client_print_color(IP_IDs, "^1[%s] ^2Cp almak icin daha ^3(%i/3) ^2Daha oynaman lazim!!",Tag,IP_IDsCpel[IP_IDs])
}
}